.class public Lcom/permission/runtime/PermissionProxyActivity;
.super Lcom/permission/runtime/BasePermissionActivity;
.source "PermissionProxyActivity.java"


# static fields
.field private static c:Lcom/permission/runtime/b;


# instance fields
.field public a:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private b:Lcom/permission/runtime/i;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/permission/runtime/BasePermissionActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/permission/runtime/PermissionProxyActivity;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/permission/runtime/PermissionProxyActivity;->f(Z)V

    return-void
.end method

.method public static a(Lcom/permission/runtime/b;)V
    .locals 0

    .line 2
    sput-object p0, Lcom/permission/runtime/PermissionProxyActivity;->c:Lcom/permission/runtime/b;

    return-void
.end method

.method private f(Z)V
    .locals 1

    .line 1
    sget-object v0, Lcom/permission/runtime/PermissionProxyActivity;->c:Lcom/permission/runtime/b;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0, p1}, Lcom/permission/runtime/b;->a(Z)V

    const/4 p1, 0x0

    .line 3
    sput-object p1, Lcom/permission/runtime/PermissionProxyActivity;->c:Lcom/permission/runtime/b;

    :cond_0
    return-void
.end method


# virtual methods
.method public finish()V
    .locals 2

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    .line 2
    sget v0, Lcom/permission/runtime/k;->fade_out:I

    const/4 v1, 0x0

    invoke-virtual {p0, v1, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/permission/runtime/PermissionProxyActivity;->b:Lcom/permission/runtime/i;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2, p3}, Lcom/permission/runtime/i;->a(IILandroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onActivityResult(IILandroid/content/Intent;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .param p1    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    sget v0, Lcom/permission/runtime/k;->fade_in:I

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->overridePendingTransition(II)V

    .line 2
    invoke-super {p0, p1}, Lcom/permission/runtime/BasePermissionActivity;->onCreate(Landroid/os/Bundle;)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v0, "key_request_permissions"

    .line 4
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p1

    check-cast p1, Ljava/util/HashMap;

    iput-object p1, p0, Lcom/permission/runtime/PermissionProxyActivity;->a:Ljava/util/HashMap;

    if-eqz p1, :cond_0

    .line 5
    invoke-virtual {p1}, Ljava/util/HashMap;->size()I

    move-result p1

    if-gtz p1, :cond_0

    const/4 p1, 0x0

    .line 6
    sput-object p1, Lcom/permission/runtime/PermissionProxyActivity;->c:Lcom/permission/runtime/b;

    .line 7
    invoke-virtual {p0}, Lcom/permission/runtime/PermissionProxyActivity;->finish()V

    return-void

    .line 8
    :cond_0
    invoke-static {p0}, Lcom/permission/runtime/i$a;->a(Landroid/app/Activity;)Lcom/permission/runtime/i$a;

    move-result-object p1

    iget-object v0, p0, Lcom/permission/runtime/PermissionProxyActivity;->a:Ljava/util/HashMap;

    .line 9
    invoke-virtual {p1, v0}, Lcom/permission/runtime/i$a;->a(Ljava/util/HashMap;)Lcom/permission/runtime/i$a;

    new-instance v0, Lcom/permission/runtime/PermissionProxyActivity$a;

    invoke-direct {v0, p0}, Lcom/permission/runtime/PermissionProxyActivity$a;-><init>(Lcom/permission/runtime/PermissionProxyActivity;)V

    .line 10
    invoke-virtual {p1, v0}, Lcom/permission/runtime/i$a;->a(Lcom/permission/runtime/b;)Lcom/permission/runtime/i$a;

    .line 11
    invoke-virtual {p1}, Lcom/permission/runtime/i$a;->a()Lcom/permission/runtime/i;

    move-result-object p1

    iput-object p1, p0, Lcom/permission/runtime/PermissionProxyActivity;->b:Lcom/permission/runtime/i;

    .line 12
    invoke-virtual {p1}, Lcom/permission/runtime/i;->b()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroidx/appcompat/app/AppCompatActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/permission/runtime/PermissionProxyActivity;->b:Lcom/permission/runtime/i;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/permission/runtime/i;->a()V

    :cond_0
    return-void
.end method

.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
    .locals 1
    .param p2    # [Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # [I
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object v0, p0, Lcom/permission/runtime/PermissionProxyActivity;->b:Lcom/permission/runtime/i;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2, p3}, Lcom/permission/runtime/i;->a(I[Ljava/lang/String;[I)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V

    return-void
.end method
